﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UserChangePassword.aspx.cs" Inherits="bts_webapp.UserChangePassword" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2011.2.915.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>
        Thay đổi mật khẩu
    </h2>
    <div>
        <asp:ScriptManager ID="sm" runat="server" />
        <telerik:RadAjaxManager ID="ram" runat="server" >
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="btChange">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="litStatus" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>

        </telerik:RadAjaxManager>
        <table>
            <tr>
                <td>
                    Mã người dùng
                </td>
                <td>
                    <telerik:RadTextBox ID="txtUserId" runat="server" Enabled="false"  />
                </td>
            </tr>
            <tr>
                <td>
                    Tên người dùng
                </td>
                <td>
                    <telerik:RadTextBox ID="txtUsername" runat="server" Width="180px" />
                    <asp:RequiredFieldValidator ForeColor="Red" ID="RequiredFieldValidator2" runat="server" Display="Dynamic"
                        ControlToValidate="txtUsername" ErrorMessage="*" EnableClientScript="true" SetFocusOnError="true" />
                </td>
            </tr>
            <tr>
                <td>
                    Dia chi
                </td>
                <td>
                    <telerik:RadTextBox ID="txtAddress" runat="server" Width="300px" />
                    <asp:RequiredFieldValidator ForeColor="Red" ID="RequiredFieldValidator1" runat="server" Display="Dynamic"
                        ControlToValidate="txtAddress" ErrorMessage="*" EnableClientScript="true" SetFocusOnError="true" />
                </td>
            </tr>
            <tr>
                <td>
                    Mật khẩu cũ
                </td>
                <td>
                    <asp:TextBox ID="txtOldPass" runat="server" TextMode="Password" />
                    <asp:RequiredFieldValidator ForeColor="Red" ID="TextBoxRequiredFieldValidator" runat="server" Display="Dynamic"
                        ControlToValidate="txtOldPass" ErrorMessage="*" EnableClientScript="true" SetFocusOnError="true" />
                </td>
            </tr>
            <tr>
                <td>
                    Mật khẩu mới
                </td>
                <td>
                    <asp:TextBox ID="txtNewPass" runat="server" TextMode="Password" />
                    <asp:RequiredFieldValidator ForeColor="Red" ID="RequiredFieldValidator3" runat="server" Display="Dynamic"
                        ControlToValidate="txtNewPass" ErrorMessage="*" EnableClientScript="true" SetFocusOnError="true" />
                </td>
            </tr>
            <tr>
                <td>
                    Nhập lại mật khẩu mới
                </td>
                <td>
                    <asp:TextBox ID="txtNewPass2" runat="server" TextMode="Password"   />
                    <asp:RequiredFieldValidator ForeColor="Red" ID="RequiredFieldValidator4" runat="server" Display="Dynamic"
                        ControlToValidate="txtNewPass2" ErrorMessage="*" EnableClientScript="true" SetFocusOnError="true" />
                </td>
            </tr>
        </table>
    </div>
    <div>
        <telerik:RadButton ID="btChange" runat="server" Text="Thay đổi" OnClick="btChange_Click"/>
        <asp:Literal ID="litStatus" runat="server" Text="" />
    </div>
</asp:Content>
